package edu.java.texbooks.tutorial.test03;

public class Tester {

    /**
     * @param args
     */
    public static void main(String[] args) {
	Animal ani= new Animal();
	Cat catty= new Cat();
	
	
	System.out.println("Catty: ");
	System.out.println(catty.a);
	System.out.println(catty.b);
	System.out.println(catty.c);
	
	System.out.println();
	System.out.println("Ani: ");
	System.out.println(ani.a);
	System.out.println(ani.b);
	System.out.println(ani.c);
	
	ani= new Cat();
	System.out.println();
	System.out.println("Ani as animal: ");
	System.out.println(ani.a);
	System.out.println(ani.b);
	System.out.println(ani.c);
	System.out.println("Ani as cat: ");
	System.out.println( ((Cat)ani).a);
	System.out.println( ((Cat)ani).b);
	System.out.println( ((Cat)ani).c);

    }

}
